package com.example.idea.controller;

import com.example.idea.entity.Student;
import com.example.idea.utils.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class TestController {
    @RequestMapping("/test")
    public Result test(){
        return Result.success("test");
    }

    @RequestMapping("/test2")
    public Result test2(Student student){
        return Result.success(student);
    }
}
